Skip to content

Conversation

@AndreaCuneo
Copy link

fix(ApiExplorer): SubstitutedType have invalid property setter

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Description

The PropertySetter of the SubstitutedType properties have 0 parameters: they had the same signature of the Getter.

Fixes #1104

@AndreaCuneo
Copy link
Author

@dotnet-policy-service agree

The PropertySetter of the SubstitutedType have 0 parameters: they had the same signature of the Getter.

resolves: dotnet#1104
@AndreaCuneo AndreaCuneo force-pushed the bugfix/SubstituteTypeInvalidPropertySetter branch from 27ac7c3 to 41f8cda Compare August 28, 2024 09:52
@AndreaCuneo
Copy link
Author

@commonsensesoftware can you please take a look. is a 1 line change plus tests.

@spaasis
Copy link

spaasis commented Nov 12, 2025

This works! I implemented the fix and published a new package version to our internal feeds, and now we can upgrade our odata projects to at least Swashbuckle 9. @AndreaCuneo thanks a million! Hopefully this gets merged to mainline soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Properties generated by DefaultModelTypeBuilder have invalid setter: without parameter

2 participants